﻿using UnityEngine;
using System.Collections;

public class FindFriendCell : MonoBehaviour
{	
	const int ACCEPT_REQUEST = 1;
	const int REJECT_REQUEST = 2;
	
	[HideInInspector] public int indexPath;
	
	public UILabel nameLabel;
	public UILabel levelLabel;
	public UILabel lastAccessLabel;
	public UILabel gradeLabel;
	public UILabel allianceNameLabel;
	
	public UIToggle trademarkToggle;
	
	public GameObject allianceGroup;
	public GameObject allianceNoneGroup;

	public GameObject requestFriendButton;
	public GameObject messageButton;

	void Awake ()
	{
		allianceGroup.SetActive(false);
		allianceNoneGroup.SetActive(true);
	}

	public void OnClick_RequestFriend()
	{
		this.GetComponent<UIDragScrollView>().scrollView.GetComponent<FindFriendScrollView>().parentPopup.RequestFriendProcess(indexPath);
	}
}
